import Config from '../../config/config'
import { DefaultDataModel } from '../../model/index'

function tspServices(req, res) {
  const resData = DefaultDataModel({
    "options": [{
      "label": "远控中心",
      "value": "远控中心",
      "children": [{
        "label": "远程开关车窗接口",
        "value": "6288a7ff1dfb371489072d3e/carBody/v1/window/switch",
        "children": null
      }, {
        "label": "远程充电控制",
        "value": "6288a7ff1dfb371489072d3e/charge/v1/remoteCharge",
        "children": null
      }]
    }],
    "services": [{
      "id": "6288a8304d482c5308ccb298",
      "name": "远程充电控制",
      "identifier": "6288a7ff1dfb371489072d3e/charge/v1/remoteCharge",
      "inputData": [{
        "identifier": "switchStatus",
        "name": "开关状态（0：开，1：关）",
        "category": "number",
        "required": 1,
        "example": null,
        "spec": null,
        "memberList": null
      }],
      "outputData": null
    }, {
      "id": "6288a8304d482c5308ccb297",
      "name": "远程开关车窗接口",
      "identifier": "6288a7ff1dfb371489072d3e/carBody/v1/window/switch",
      "inputData": [{
        "identifier": "switchStatus",
        "name": "开关状态（0：开，1：关）",
        "category": "number",
        "required": 1,
        "example": null,
        "spec": null,
        "memberList": null
      }],
      "outputData": null
    }]
	})
  res.json(resData)
}

const ResponseList = [
  {
    path: `${Config.baseURL}/api/object/tspServices`,
    method: 'get',
    fun: tspServices,
  }
]

export default ResponseList
